Part Number Hot Search : 
KDR393 2SC3356F S21190HR 491S2 EVD25F0 SDA3526 74HC2 MAD24018
Product Description
Full Text Search
 

To Download KS16121 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  preliminary dsp for digital answering phone with flash interface KS16121 features ? high-performance speech compression algorithm ? voice activation and silence compaction for longer recording time ? digital speaker phone with acoustic and line - echo cancellers, full - duplex operation under the double talk condition ? supports caller id reception and storage during on - hook / off - hook ? advanced flash memory management for maximum recording time and reliable data storage ? dtmf detection with near-end echo cancellation, and programmable tone generation ? programmable call progress tone detection for busy and / or dial tones ? supports high-quality voice prompts from rom / eprom or flash memory ? supports multiple message attributes for time stamp, mail box and other applications ? storage for 128 voice messages and 128 16-bit data or 32 telephone numbers ? 8-bit host interface for easy access and control ? supports up to four 4m( 512k x 8) bit or one 16m( 2m x 8 ) bit flash memory from samsung electronics, km29n040 and km29n1600 KS16121 is a digital signal processor ic that implements all the funct- ions and hardware interfaces necessary for voice compression, storage and digital telephone answerer. the basic functions include low bit-rate speech compression, efficient flash memory management through table look-ups, full - duplex digital speaker phone, caller - id reception, variable speed playback ( vsp ) at the rate of 50% to 200%, dtmf tone generation and detection, call progress tone detection and high quality voice prompts. the on-chip interface units provide the access to 4m / 16m flash memories, optional rom / eprom and two pcm codecs without any glue logic. all the clock and control signals are generated on - chip. KS16121 supports a simple command / status interface protocol for an external host controller. the host writes commands to activate various modes of operations supported by the chip and reads status words to monitor its operation. KS16121 is manufactured with samsung 0.8 m cmos technology that guarantees reliable performance with low power dissipation. ++ under development ordering information 80-qfp-1420c introduction device package operating temperature ++KS16121q - 20 o c ~ + 70 o c 80 - qfp - 1420c
preliminary dsp for digital answering phone with flash interface KS16121 block diagram KS16121 rom/eprom for voice prompt flash memory ( 0.5m x 8 or 2m x 8 ) program rom dsp core data ram memory interface host inter- face codec inter- face host codec optional codec for speaker phone figure 1 block diagram of KS16121 voice prompt chip configuration ? KS16121 : dsp for digital answering phone with samsung nand flash memory interface ( 80 qfp ) ? ks8620 / kt8554 : analog in / out interface ( m - law pcm codec ) -- 16 dip / 16 wide sop 1 for normal operation & 2 for speakerphone ? km29n040 / 1600 : samsung nand flash memory with 512k x 8 ( 4 m ) or 2m x 8 ( 16 m ) organization ? external rom / eprom : each 64 kbytes block can supports up to 98.5 seconds of voice prompts. this is user option for voice prompt which is in the external rom / eprom or in a part of flash memory, but not both.
preliminary dsp for digital answering phone with flash interface KS16121 pin configuration dq4 dq3 dq2 dq1 dq0 nc nc nc v dd v ss nc nc nc nc xi xo add12 add13 v ss v dd add14 add15 roeb v ss v dd hd0 hd1 hd2 hd3 hd4 hd5 hd6 v dd v ss add11 add10 add9 add8 add7 add6 add5 add4 web/add3 ale/add2 cle/add1 ceb4 ceb3 ceb2 v dd v ss ceb1 reb/add0 rbb dq7 dq6 dq5 hd7 v ss v dd hreqb hwb hrb hlb datf dr2 dr1 fsync v ss v dd bclk apd2 apd1 dx2 dx1 resetb pdnb nc nc v ss v dd 1 10 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 KS16121
preliminary dsp for digital answering phone with flash interface KS16121 pin description pin name pin no. description hd[7:0] hwb hrb hlb hreqb datf bclk fsync apd1 dx1 dr1 apd2 dx2 dr2 add[15:4] roeb web/add3 ale/add2 cle/add1 reb/add0 ceb1 ceb2 ceb3 ceb4 rbb dq[7:0] xi xo resetb pdnb v dd host data bus for host instructions and status words from KS16121. pull-up. host write strobe. a low to high transition loads an instruction into the KS16121. host read strobe. the KS16121 writes a status word to the host data bus when hrb is low. lower byte select. 16-bit command and status words are written or read, 8 bits at a time when low, this signal indicates that lower byte is selected. host read request. indicates that a status word is ready for the host to read. active low. it goes inactive when the higher byte of a status word is read by the host. not used. pcm data receive/transmit bit clock for codec 1 and 2. ( 2.048mhz clock ) pcm data receive/transmit frame sync clock for codec 1 and 2. codec 1 inactive flag. when set, indicates the codec is not used and may be powered down. pcm data transmit pin to codec 1 . serial data output from KS16121 to codec. pcm data receive pin from codec 1. serial data output from codec to KS16121. pull-up. codec 2 inactive flag. when set, indicates the codec is not used and may be powered down. pcm data transmit pin to codec 2. serial data output from KS16121 to codec. pcm data receive pin from codec 2. serial data output from codec to KS16121. pull-up. address bus for rom/eprom. rom/eprom output enable. active low. flash memory write enable. active low. rom / eprom address bit 3 flash memory address latch enable. active high. rom / eprom address bit 2 flash memory command latch enable. active high. rom / eprom address bit 1. flash memory read enable. active low. rom / eprom address bit 0. chip enable for first flash memory. active low. chip enable for second flash memory. active low. chip enable for third flash memory. active low. chip enable for fourth flash memory. active low. flash memory ready / busy signal. if low, flash memory is busy. data bus for flash memory and rom / eprom. pull -up crystal input pin. 24.576mhz crystal output pin. system reset. active low. system power down. active low. chip power supply ( 1,17,33,41,52, 62,72,77 ) 64 - 71 60 59 58 61 57 51 54 49 47 55 50 48 56 75-76,79-80 3 -10 74 11 12 13 20 19 16 15 14 21 22-29 39 40 46 45 type i / o i i i o o o o o o i o o i o o o o o o o o o o i i / o i o i i i i chip ground. ( 2,18,34,42,53, 63,73,78 ) v ss
preliminary dsp for digital answering phone with flash interface KS16121 absolute maximum ratings ( ta = 25 o c ) recommended operating conditions dc electrical characteristics ( v dd = 5v,ta= 25 o c ,unless otherwise specified ) characteristic symbol value unit supply voltage input voltage output voltage storage temperature v dd v in v o t stg 7 v ss - 0.5 to v dd + 0.5 v ss -0.5 to v dd + 0.5 - 65 to +150 v v v o c min. typ. max. unit power supply voltage ground voltage operating temperature crystal frequency high-level input voltage low-level input voltage current with high-level output current with low-level output v dd v ss t opr f ck v ih v il i oh i ol 4.5 0 3 5 0 24.576 5.5 70 0.7 +1 -1 v v o c mhz v v ma ma characteristic symbol condition high-level output voltage low-level output voltage input leakage current input pin capacitance pull-up resistance operating current v dd =5v and f osc =24.567mhz v oh v ol i in c in r pu i dd1 i dd2 i oh = -100 m a i ol = 500 m a v in = 5v normal powered down v dd - 1.5 25 25 30 100 v ss + 0.5 150 10 v v m a pf k w ma ma min. typ. max. unit characteristic symbol
preliminary dsp for digital answering phone with flash interface KS16121 timing characteristics (v dd = 5v,ta= 25 o c ,unless otherwise specified) notes host read pulse width host read data delay time host read hold time host write pulse width host write setup time host write hold time host read request delay codec bit clock low time codec bit clock high time codec frame sync high delay time codec frame sync low delay time codec receive setup time codec receive hold time codec transmit delay time rom/eprom address steup time rom/eprom address hold time rom/eprom output enable pulse width rom/eprom data setup time rom/eprom data hold time cle setup time cle hold time web pulse time ale setup time ale hold time ceb setup time ceb hold time data read setup time data read hold time data write setup time data write hold time write cycle time web hold time ale to reb delay ready to reb low dealy ready cycle time reb high to web low delay web high to reb low delay reb hold time read id setup time v dd high to pdnb high delay t hrw t hrdd t hrdh t hww t hwds t hwdh t hreq t bckl t bckh t bfdr t bfdf t sdb t hbd t dbd t wras t wrah t wroe t wrds t wrdh t cls t clh t wp t als t alh t cs t ch t dsr t dhr t ds t dh t wc t wh t ar t rr t rc t rhw t whr t reh t whrid t vp 80 1 80 20 5 30 10 200 40 180 80 0 100 50 100 50 50 100 400 20 20 100 100 250 100 800 150 150 1.0 100 100 100 45 244 244 400 20 40 10 10 30 ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns m s ns ns ns ms min. typ. max. unit characteristic symbol 300
preliminary dsp for digital answering phone with flash interface KS16121 timing diagrams host read cycle hrb hlb hd[7:0] hreqb t hrw t hrdd t hrdh t hreq lower byte higher byte host write cycle lower byte higher byte hwb hlb hd[7:0] t hww t hwds t hwdh codec read/ write cycle t bfdf t bfdr t sdb t hbd t bckh t bckl t dbd fsync dr[2:1] bclk dx[2:1] 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 notes pdnb high to resetb low delay resetb width pdnb low to v dd low delay reb low to output valid time reb high to output hi-z 0 100 3 0 ns ns ms ns ns min. typ. max. unit characteristic symbol t pr t pw t pv t rea t rhz 100 30 v dd
preliminary dsp for digital answering phone with flash interface KS16121 rom / eprom read cycle add[15:0] roeb dq[7:0] t wras t wrah t wroe t wrdh t wrds valid valid t cls t clh t cs t ch t wp t als t alh t ds t dh command cle ce we ale dq[7:0] flash memory command latch cycle t cls a0-a7 cle ce we ale dq[7:0] flash memory address latch cycle a8-a15 a16-a18 t cs t wc t wc t wp t wp t wh t wh t dh t ds t als t alh
preliminary dsp for digital answering phone with flash interface KS16121 cle ceb ale web dq[7:0] flash memory data write cycle din 0 din 1 din 31 t clh t ch t als t wc t wh t wp t wp t wp t ds t dh t ds t dh t ds t dh ale ceb rbb reb dq[7:0] dout dout dout t reh t rea t rea t rhz flash memory read cycle t ar t rc t rhz t rr flash memory read id cycle cle ceb ale web dq[7:0] din add in dout dout t whrid reb t ar t rea
preliminary dsp for digital answering phone with flash interface KS16121 chip initialization & power failure t pv t pr t vp t rw vcc vdd pdnb reset
preliminary dsp for digital answering phone with flash interface KS16121 host instructions and status words mode instruction status reset idle initialization 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 not application record r0 r1a r1b r1c voice prompt playback tone generate message deletion garbage collection tone detect read memory status read data write data d0 d1 read attribute s0 s1 set attribute u0 u1 change attribute read recording time hw select c0 c1 program call progress detector t0 t1 t2 t3 program tone generator sp0 sp1 sp2 speakerphone pa 0 0 0 0 mgain tone id pbs tail cut message count offset pbs pbs pbs phrase id mgain tone id message id data id data id data message id attribute 0 1 1 1 0 1 1 0 ma message id attribute oc coefficient i tone id gain 1 gain 0 frequency 0 frequency 1 ls ms mm mm lov lov sov sov ramo cpt cpt dtmf dtmf 0 0 0 0 tail cut pbs message id offset cpt 0 0 0 0 dtmf offset cpt cpt cpt dtmf dtmf dtmf message id 0 0 0 0 0 0 0 ce cpt dtmf message count data 1 1 0 0 0 1 1 1 0 data id data attribute 1 1 0 1 0 1 0 1 ma 0 0 0 0 0 0 0 attribute 1 1 0 1 1 1 0 ma 0 message id attribute record time oc coefficient i tone id gain 1 gain 0 frequency 0 frequency 1 ls ms lov lov sov sov 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 fi ft 0 0 0 0 0 0 0 0 p0 v0 v1 p1 p2a p2b 0 0 0 1 0 0 0 0 sc va lb 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 message id 0 0 1 0 0 0 0 0 1 0 0 pa 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 pbs 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 1 0 1 0 1 1 1 1 0 0 0 0 1 1 1 1 0 1 0 0 0 0 0 0 0 0 ma ma 0 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 0 0 0 ic 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 mm mm ce ic 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 read caller id cnd data cr0 cr1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ai fn mf rs es mb sc va lb mf vd mf vd mf ef pa em pa ef rd em 0 em ef gc mf 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 rd 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 ai fn write caller id rbyte cw0 cw1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 rm rc ri 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 detect caller id 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 cd0 cnd id cnd data cnd id cnd id cs 0 0 cnd id 1 0 cs cnd data
preliminary dsp for digital answering phone with flash interface KS16121 description of instruction / status parameters ai attribute ce cnd data cnd id coefficient i cpt cs data data id dtmf ef em es fi fn frequency 0 frequency 1 ft gain 0 gain 1 gc ic lb lov ls ma mb message count message id mf mgain 1 16 1 8 6 16 2 1 16 7 4 1 1 1 1 1 16 16 1 4 4 1 1 1 2 2 1 1 7 7 1 4 parameter bit width definition already initialized. indicates that the host need not issue initialization command, if set, after a reset operation. message attribute. each message has two 16-bit attributes that the host can set and read for time stamp, mailbox id and other purposes. the result for the detection of cpe alerting signal. if set, it means that the cpe alerting signal has been detected. calling number delivery data calling number delivery index. the KS16121 supports 40 cnd data storage. filter coefficient i for the call progress tone detection filter. used for programming the filter to detect user-defined tones. call progress tone detection result. cpt[1] is set when a signal energy is present in the tone frequency band. cpt[0] is also set if the signal meets the on / off time requirements. if set, cnd data stack is empty or full in cnd data read / write operation. 16-bit data carrying any information the host chooses, including tel. numbers. data index. the KS16121 supports 128 data items. index of detected dtmf signal . 0 for no tone, 1 through 9 for dtmf code 1 through 9, and 10, 11 and 12 for dtmf codes , * , 0 and # , respectively. if set, indicates an invalid message index. indicates the end of message or prompt if set, in the playback and voice prompt modes, respectively. flash memory ( directory area ) test result. when set, it indicates that functional faults are detected and the KS16121 can not use the flash memory devices. format or initialize. format if set, or initialize if reset. format needed. if set, indicates it needs a format operation in initialization. frequency 0. the actual frequency is ( 8000 / 65536 ) * ( frequency 0 ) hz. frequency 1. the actual frequency is ( 8000 / 65536 ) * ( frequency 1 ) hz. format type. if set, all cells in flash memory are tested. otherwise, all cells in flash memory except ogm area are tested. all data in tested area are deleted. gain of frequency component 0. 0xf for -24dbm and 0x0 for 6dbm in 2db steps. gain of frequency component 1. 0xf for -24dbm and 0x0 for 6dbm in 2db steps. garbage collection completion flag. if set, indicates the garbage collection is completed. input codec selection flag. 0 for codec 1 or 1 for codec 2. activates the loop back option, if set, in the record mode. line output volume. 0x0 for 0 dbm and 0x3 for -9dbm in 3 db steps. line input sensitivity. 0x0 for +12dbm and 0x3 for 0 dbm in 4db steps. the higher value is for noisy environment. message attribute index. specifies one of two attributes in a message. if set, no area in flash memory is available for icms the number of messages stored in flash memory. the index of message to be played - back ( p0 ) or deleted . memory full. if set, it indicates no more message can be stored in flash memory. master tone gain. mgain+gain0 and mgain+gain1 should not exceed 15.
preliminary dsp for digital answering phone with flash interface KS16121 description of instruction / status parameters ( continued ) mm ms oc offset pa pbs phrase id ramo[3:0] rbyte rc rd record time ri rm rs sc sov tail cut tone id va vd 1 2 2 10 1 3 7 4 8 1 1 12 1 1 1 1 3 7 5 1 1 mute microphone. if set, microphone input is muted. microphone input sensitivity. 0x0 for +12 dbm and 0x3 for 0 dbm in 4db steps. the higher value is for noisy environment. output codec selection flag. 0 for codec 1, 1 for codec 2 or 3 for both codecs 1 and 2. the length of message, from the beginning, to be skipped in unit of seconds. it also indicates the current position of message in a status word. pause the playback. playback speed. pbs = 0 or 3 for normal speed (ns). the speed ranges from 0.5*ns ( twice slower) to 2*ns ( twice faster). pbs = 1 for 0.5*ns, 2 for 0.75*ns, 4 for 1.25*ns, 5 for 1.5*ns, 6 for 1.75*ns and 7 for 2*ns. the index of the phrase in rom/eprom to be played back in voice prompt mode. memory test results. indicates the available memory size . ( 0 for 0-1m , 1 for 1-2 mbits , 2 for 2-3m etc ) received byte. this is the received ascii byte by meaningful only when rm is set. receiving a non-message signal. if set, it means that th KS16121 is receiving the channel seizure signal or mark signal for on-hook transmission or receiving the mark signal for off - hook transmission. ready flag in the voice prompt mode. if set, it indicates a new phrase may be selected. available recording time for icms, in unit of seconds. idle state for caller-id reception. if set, it means that the KS16121 is idle mode during caller-id reception. receiving a message frame. if set, it means that the KS16121 is receiving a message frame. voice prompt data test result. it passed the test, when cleared. activates silence compaction, if set, in the record mode. speaker output volume. 0x0 for +6dbm and 0x6 for -12dbm in 3db steps. 0x7 means that the speaker output is muted. the length of message, from the end, to be removed in unit of 80 msec. index from the tone table. by default, indices 0 through 12 correspond to standard dtmf tones. enables the voice activation, if set, in the record mode. voice signal detected in record mode. name bit width definition
preliminary dsp for digital answering phone with flash interface KS16121 functional description host interface the KS16121 acts as a co-processor to a host. it communicates with the host via an 8-bit parallel interface. a simple protocol of 16-bit instruction issued by the host and a 16-bit status word returned from the KS16121 is employed. through this command / status protocol, the host can handle the KS16121 to perform multiple functions simultaneously in various modes. message recording the KS16121 uses 4m( 512k x 8 ) or 16m (2m x 8 ) bit samsung nand flash memories to store the compressed speech data. a recording operation generates a compressed representation of speech segment, or compressed message, and saves it in the flash memories. subsequent recording operations store the compressed messages sequentially in the memory space until no more space is available. a maximum of 128 messages can be stored. the KS16121 employs a software algorithm running on an on-chip dsp core to compress the incoming speech samples at 8 khz time intervals from a m -law pcm codec. the algorithm processes the speech on a 20 msec time frame and produces the compressed data at 5.15 kbps. when used with the silence compaction option, the algorithm can store approximately 15 minutes of compressed speech in a 4m flash memories. the silence before a speech signal or between speech segments can be detected and used by the KS16121 to save the memory space needed to store the message. the host may choose the following recording options: ? voice activation -- the initial silence is ignored and the recording starts only when the KS16121 detects a speech signal. without this option, the recording starts immediately after a record instruc- tion. ? silence compaction -- the silence gaps between speech segments are measured and replaced with simul- ated noise during playback, to save the memory space. a recording operation normally ends with a host command set . when necessary, the length of the message may be reduced by removing the tail end of the message, which may contain no speech signal. the instruction from the host specifies the number of speech frames to be removed. message playback a playback operation retrieves a compressed message from flash memories. each message is identified with a message number, given by the host along with a playback command. a portion of memory space is allocated to maintain the information related to individual messages, such as memory address and message length. the KS16121 reads the compressed message from flash memories and processes it with the decoding software algorithm to recover the original speech samples. the samples are fed to an external m -law pcm codec for digital to analog conversion.
preliminary dsp for digital answering phone with flash interface KS16121 the speed of playback is adjustable by the host, from 0.5 to 2 times the normal speed in an increment of 0.25, without changing the voice characteristics. the host can specify an offset in the playback command. the offset, given in seconds, instructs the KS16121 to skip a specified length of the message, from the beginning, before the playback starts. during the playback operation, the host can issue a pause command to stop the playback momentarily and resume the operation from the same point. voice prompts certain applications require to play a pre-stored speech segments, including fixed messages, voice prompts and voice guides. the user can be store voice prompts in an external rom/eprom or in a part of flash memory , but not both. voice prompts stored in either memories is in a compressed form ( 5.15 kbps ) to allow for an increased number of phrases and efficient memory usage. the KS16121 has a memory interface that can read these phrases from each memories , without interfering the messages stored in flash memory. the memory space for voice prompts is limited to 64kbytes when we use external rom/eprom as a voice prompts storage, but is not limited when a part of flash memory is used. the maximum number of voice prompts which KS16121 supports are 128 . the KS16121 s oftware s upport t ools enable users to generate user-specified speech samples using an external rom/eprom or a flash memory. it is often important to control the time delay or gap between phrases properly when a multiple number of phrases are played in sequence. the KS16121 host interface enables users to control the gap between the current and next prompts accurately in 20 - msec resolution. dtmf / call progress tone detection during the record, playback and voice prompts modes as well as the tone detection / generation modes, the KS16121 monitors the in-coming signal for the presence of dtmf and call progress tones. the monitoring result is returned to the host as a part of the 16-bit status word. the KS16121 employs a n ear-end e cho c ancellation ( nec ) algorithm in its tone detection subsystem. the nec removes the echo signal, returned by the codec, from the in -coming signal and helps the detector perform reliably in the presence of a strong local signal. the result of dtmf detection is expressed as a 4-bit number as follows:
preliminary dsp for digital answering phone with flash interface KS16121 table 1. definition of dtmf detection result the performance of the dtmf detection is summarized in the following table. table 2. dtmf detection performance in table 2 and 3, 0 dbm is equivalent to the power of a sinusoid with a peak-to-peak amplitude of 7175 after m -law to linear conversion. the KS16121 has a programmable call progress tone detector with two output flags. the first one is the continuous tone flag that is set when a signal has a dominant signal energy in the frequency band the user chooses. the second flag indicates whether the input tone meets the on/off interval requirement. during a cold start, the KS16121 sets up the call progress detector such that it can detect both the busy and dial tones. the default set-up of the call progress tone detector may be changed by loading a new filter setting through the host interface. the performance of the default call progress detector is summarized in the following table : bits dtmf code freq. 0 ( hz) freq. 1 (hz) 0x0 none 697 1209 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xa 0xb 0xc 1 2 3 4 5 6 7 8 9 * 0 # 697 1336 697 1477 770 1209 770 1336 770 1477 852 1209 852 1336 852 1477 941 1209 941 1336 941 1477 parameter min. max. unit detection signal level dtmf twist ( high/ low ) detection bandwidth noise tolerance ( snr ) tone duration interdigit pause -35 12 40 40 0 3 +4/-8 dbm db % db ms ms
preliminary dsp for digital answering phone with flash interface KS16121 table 3. performance of call progress tone detector tone generation the KS16121 has a programmable tone generator that outputs a single or dual frequency tone, intended for signalling and other purposes. the total number of tones that can be defined and used is 31. an internal tone table holds the frequencies and gains of each tones. the host can instruct the KS16121 to generate a tone signal from an idle or record mode. the KS16121 accepts the 5-bit tone index and 4-bit gain from the instruction. the gain is given in 2-db setps. during a system reset, the KS16121 sets the tone frequencies and gains to their default values. the first twelve tones, indices 0 x 1 through 0 x c, are standard dtmf tones, specified in table 1. the tone with index 0 x 10 is a standard dtmf d tone, which will be used as an acknowledgement signal during off-hook transmission of calling number delivery function . the host is free to change the frequencies and gains of any tone to meet the need of a specific application. speaker - phone the KS16121 performs a speakerphone with the following features: - acoustic echo canceller ( aec ) to cancel acoustic echo - line echo canceller ( lec ) to cancel near-end echo - full-duplex mode under the double-talk condition - speaker output volume, line output volume, line input sensitivity, and microphone input sensitivity controlled by user command - tone detector to detect ring signal to reduce the effects of dial tone, ringing signal and busy tone - another tone detector to detect the cpe alerting signal parameter min. max. unit detector frequency on/off duration signal level ( detection ) signal level ( rejection ) noise tonerance ( snr ) 330 260 -30 12 640 -35 hz msec dbm dbm db
preliminary dsp for digital answering phone with flash interface KS16121 memory/message management the KS16121 supports a flexible memory management, from the host, of the messages and other information stored in the memory. the memory space (flash memory and rom/eprom) and stored information can be manipulated by the host with the following features : ? message deletion -- a message is removed from the memory. the indices of the remaining messages are updated appropriately to reflect the deletion. caller id reception the KS16121 performs the reception of caller-id in accordance with bell 202 or itu -t v.23 standards. it can receive the caller - id information during on - hook state with the use of an external ringing signal detector. it can also receive the information during off - hook state by using the internal cpe alerting signal detector and tone generator. the input dynamic range of receiver is from -35 to 0 dbm. the receiver removes redundant information like the channel seizure signal , mark signal , and any inter - word delays including start and stop bits from the incoming signal. it provides the host with ascii bytes forming a message and checksum word. the host can acquire the status of receiver in addition to the received ascii bytes by issuing a command to the KS16121 and reading the corresponding status word. please refer to the appendix a for details on the caller - id reception and its applications. cpe alerting signal detection the KS16121 employs a tone detector to detect the cpe alerting signal which leads the caller - id information during off - hook transmission. this feature of KS16121 is useful in identifying the third caller for telephone subscribers with the call - waiting option. this detector is active in either tone detection or speakerphone mode. the detector consists of two bandpass filters whose center frequencies are tuned to 2130 hz and 2750 hz respectively, and its performance is summarized in the following table. table 4. cpe alerting signal detction performance parameter max. min. unit cpe twist(high/low) detection bandwidth noise tolerance(snr) tone duration detection signal level 12 65 -30 +8/-8 3 db % db ms dbm
preliminary dsp for digital answering phone with flash interface KS16121 ? garbage collection -- empty holes in the memory space, created by repeated recordings and deletions, are eliminated to save the space and maximize the recording time. ? message attributes -- each message stored in memory has two 16-bit attributes attached to it, which can hold any information relevant to individual message. the host can write, read or change the attributes and implement the time stamp, mail box and other applications with them. ? memory status -- the host can instructs the KS16121 to report the status of voice prompt area ( flash memory or rom/eprom ) and flash memory, including the total number of messages stored. the host can also instruct the KS16121 to return the approximate time available for recording, computed based on the current memory usage. ? data storage -- in addition to the compressed messages, the KS16121 allows the host to store and retrieve 128 16-bit words in memory. when used for storing telephone numbers, this memory space supports a maximum of 32 numbers, in which each telephone number consists of 4, 16-bit words or 16 hexadecimal digit. flash memory support the KS16121 helps the system implementation with a support for flash memories with faulty bits. the KS16121 memory subsystem utilizes an access scheme that uses the mapping of bad blocks and readbacks, and can cope with time dependent bit fails. the scheme insures a reliable system operation with the maximum recording capacity. power down the KS16121 has an on-chip power down circuitry. in this mode, KS16121 stops its operation and holds all the data being processed just before power down with a minmum power dissipation. when awaking from the power down mode, the KS16121 resumes the processing just before power down. it is recommended that this mode should be entered from the idle mode. recovery from power failure the KS16121 can recover the flash memory information when the host issues a reset signal to it after a power failure during flash write / erase operations. if a power failure occurred in record mode , the last message will be delete after the recovery. if it occurred in garbage collection mode, the message which was being moved will be deleted . if it occurred in any modes except above two modes , all the information will be intact. flash write / erase failure when flash memory write / erase failure occurs , the KS16121 issues idle status and goes to the idle mode. the host can detect the occurrence of flash write / erase failure by monitoring the status word. in that case, the host can re-initialize the KS16121 by issuing an initialization command.
preliminary dsp for digital answering phone with flash interface KS16121 hardware interface the KS16121 contains a dsp core, program rom, data sram and interface logic. the interface logic consists of memory, codec and host interfaces. clocking the KS16121 has an on-chip oscillator. it requires a crystal with fc = 24.576 mhz. reset when power - up the system first after power failure , the KS16121 must be reset with a pulse at the reset pin for a minimum duration of 100 nsec, in order to clear internal registers, set operating parameters to their default values, and initialize the dsp software program. a reset is strongly recommended after a power failure. host interface the host communicates with the KS16121 through the host interface which is an 8-bit parallel interface with separate read / write strobes, as shown in figure 2. the host writes instructions and reads status words via the 8-bit bi-directional port in two successive accesses. two bytes of a 16-bit instruction / status word are distinguished with hlb input pin. for proper communication, the lower byte ( with hlb low ) should be accessed first , followed by the higher byte ( with hlb high ). the KS16121 executes the instruction after the higher byte is written by the host. when a status word is ready for the host, the KS16121 pulls the hreqb output low, which may be used as a host interrupt. the host then reads the lower byte of the status, followed by the higher byte at which time the KS16121 sets hreqb high. pout int hd[7:0] hrb hwb hreqb hlb host KS16121 figure 2. host interface for KS16121 hlb rd wr
preliminary dsp for digital answering phone with flash interface KS16121 in principle, the host issues an instruction in order to get a new status word. the KS16121 returns a status word in response to a command, regardless of whether the previous status output has been read. the response time from an instruction issued and a status returned may be within 20 msec in most cases, except the initialization and garbage collection instructions which returns a status words after completion of the instructions. codec interface the KS16121 supports two pcm codecs. the first codec ( dx1 and dr1 ) is used for message recording and playback. the second codec ( dx2 and dr2 ) is used for full - duplex speaker phone. the codec interface is used for transferring digitized speech samples between the KS16121 and the codecs. dx1 dr1 apd1 bclk fsync dx2 dr2 apd2 dr dx pdn bclk mclk fsr fsx dr dx pdn bclk mclk fsr fsx codec 1 KS16121 codec 2 figure 3. codec interface all the clock and control signals needed to operate the codec are generated by the KS16121. a linear to m -law conversion is performed before the KS16121 sends data to the codec and an inverse conversion for the data received. each 8-bit data is transferred serially, the sign bit first, through pins dx1 / dr1 or dx2 / dr2. the KS16121 generates bclk and fsync to synchronize the transfer. output pins, apd1 and apd2, indicate whether the codecs are actively used. these outputs may be used to power down the codecs, but a care should be taken since some codecs may create clicking noise when powered down / up frequently.
preliminary dsp for digital answering phone with flash interface KS16121 memory interface the KS16121 memory interface subsystem supports connection to flash memories and rom / eprom without any external glue logic. it has a 16-bit address bus ( add ) and 8-bit bi-directional data bus ( dq ), shared by flash memories and rom / eprom. output pin roe should be used as an output enable for the rom / eprom. when users use flash memory, pull-up resistor should be connected to rbb pin , for further details, refer to the flash memory specification. rbb dq[7:0] KS16121 rom/eprom ceb flash 4 flash 3 flash 2 flash 1 ceb ceb ceb4 ceb3 ceb2 ceb1 rbb web/add3 roeb figure 4. memory interface with 4m flashes figure 5. memory interface with 16m flash ale/add2 cle/add1 reb/add0 dq[7:0] ceb i/o[7:0] cle ale web reb add[15:4] a[15:0] oeb 4 rbb dq[7:0] KS16121 rom/eprom flash ceb1 rbb web/add3 roeb ale/add2 cle/add1 reb/add0 dq[7:0] ceb i/o[7:0] cle ale web reb add[15:4] a[15:0] oeb 4
preliminary dsp for digital answering phone with flash interface KS16121 the KS16121 supports both 4m and 16m flash memories in a by-8 arrangement. it can use up to four 4m flash memory devices for the message storing space. the pins cle, ale, web and reb are commonly used for the lower four bits of the address bus, add [ 3:0 ], respectively. the memory interface subsystem has an on-chip flash memory control and flash memory command generation circuitry. the data transfer from the rom / eprom is byte-wide with the maximum address space of 64k words. software operation after a system reset, the KS16121 is in idle mode. the host has to issue a new command to put it in an active mode. the KS16121 interprets the command , performs the functions specified by the command, and returns a status word. section host instructions and status words summarizes the instruction set supported by the KS16121 and the status words returned for each instructions. the KS16121 software operational modes with corresponding instructions and status words are described in this section. in some modes of operation, the host is expected to issue a sequence of valid commands in an appropriate order. the KS16121 returns to the idle mode when a task terminates or an invalid command is detected or flash write / erase failure occurs, except where described otherwise in this section. reset the KS16121 enters a reset mode with a low to high transition of the reset pin. the reset is required after system power-up. it is not required after a period of power-down operation. the reset operation first determines whether it needs an initialization command by checking the validity of data in flash memory . an initialization is needed only when the flash memories have never been initialized before, or write/erase failures had occurred. at the completion of the reset procedure, the KS16121 returns to the idle mode with the status word indicating the number of messages stored. the status also indicates whether an initialization (ai) and / or a formating (fn) is required before the flash memory can be used in normal operation. the ai bit is set if flash memories have been initialized before with KS16121. the fn bit is set when flash memories are neither properly initialized nor in a pre-formatted condition from factory. if the KS16121 determines that a power failure had occured during previous flash write / erase operation, it recovers the memory subsystem from any loss of information due to the failure, before terminating reset procedure. idle the KS16121 monitors the host interface for a new instruction in this mode. a new task may be initiated from this mode. it returns to the idle mode at the completion of a task automatically or by an explicit idle command from the host.
preliminary dsp for digital answering phone with flash interface KS16121 initialization the KS16121 should be initialized when ai bit is 0 in the status word after reset procedure or an obnormal condition has occurred with idle status because of the flash write/erase failure. otherwise, the KS16121 need not be initialized. when an initialization is needed, the fi (format or initial) bit should be set properly. a new formatting (fi=1) of flash memories is required when the fn bit is 1 in the status word after reset procedure or an abnormal stopping has occurred due to the flash write / erase failure. otherwise, the fi bit should be set to 0. when the host initializes the KS16121 with fi bit set to 1, the ft (format type) bit should be set properly. if voice prompt data resides in flash memories, the fi bit shoud be 0 and the KS16121 retains the pre-stored voice prompt data in the flash memories. otherwise, the KS16121 clears all the data area in the flash memor- ies including voice prompt data and including message data. when the host issues an initialization command, the KS16121 initializes the message memory sapce ( flash memory) and returns the result to the host. the host specifies the total amount of available memory space in parameter field, ramo, in unit of 4m bits while the type of flash memory ( 4 mor 16m ) is selected automatic- ally by KS16121. when formatting, after decision of flash memory type, the KS16121 checks the available memory space exhaustively for faulty bits which may occur due to continuous use of flash memory, creating a table of usable blocks which is used for memory access during normal operation. the time it takes for the KS16121 to complete the initialization depends on the memory size and is approximately 3 sec / 4 mbits. the KS16121 returns to the idle mode at the completion. the status field ramo returns the actual size of memory for recording in unit of 1m bits. when the flash write / erase failure occurs, the KS16121 returns to the idle mode after issuing idle status. the host can detect the flash write / erase failure occurrence by monitoring the status word. in this case, the host may reinitialize the KS16121 by issuing initialization command with fi bit being set, but all exisitng icms will be erased. record the message recording starts with the r0 instruction. the host may specify the following options with the instruction : ? voice activation ( va ) -- the recording starts only after voice signal is detected. the KS16121 status recording immediately without this option. ? silence compaction ( sc ) -- the silence gaps during recording are detected and compacted to save the memory. ? loop back ( lb ) -- the in-coming voice signal is looped back to the codec input. once the KS16121 is in the record mode, the host may issue the following instructions to the KS16121 :
preliminary dsp for digital answering phone with flash interface KS16121 see tone detection mode for a description of the dtmf and call progress tone detection result. the recording status is reported with the status bits, mf and vd, which indicate the memory full and voice detected conditions, respectively. the KS16121 continues the recording while it reads and responds to these commands. if needed, the host can use these instructions repeatedly without interrupting a recording operation. when the memory becomes full , the KS16121 remains in the record mode even though the message is not stored any more. the host may terminate a recording with an idle instruction. the message is saved in the memory before the KS16121 returns to the idle mode. alternatively, the host may issue an r1c instruction to terminate recording and remove the tail portion of the recorded message. the 7-bit parameter, tail cut, specifies the length of tail to be removed in the unit of 80 msec. playback the KS16121 enters the playback mode with the p0 instruction, which also specifies the playback speed ( pbs ) and the index of message to be played-back ( message id ). the playback speed ranges from 0.5 ( two times slower ) to 2 ( two times faster ) in the step of 0.25. the actual playback starts after the p1 instruction is received. the offset bits of the instruction specifies the length of the message, from the beginning, to be skipped in the unit of seconds. while the KS16121 plays a message, the host may issue one of the following instructions: ? p2a -- monitor the dtmf, call progress tone detection result ( dtmf, cpt ) and recording status ( em ). ? p2b -- read the current position in the message from the beginning ( offset ). the playback continues with these instructions if the pa bit set to 0. the host can pause the playback these instruction with pa = 1, in which case the KS16121 stops the playback operation and resumes it when a new instruction ( p2a , p2b ) is entered with pa = 0. the KS16121 stays in the playback mode and continues to respond to the p2a and p2b instructions even when it is in pause ( pa = 1 ) or the end of message is reached ( em = 1 ). it returns to the idle mode with an idle instruction. voice prompt the host issues a voice prompt instruction ( v0 ) to play a phrase that is pre-stored in rom / eprom or flash. the instruction specifies the phrase number and the desired playback speed. ? r1a -- monitoring the recording status ( mf,vd ) , the dtmf and call progress tone detection result ( dtmf, cpt ). ? r1b -- generate a tone, in addition to the tasks performed with r1a. see the tone generation mode for definition of the input parameters. the tone generation stops with another r1b instruction with tone id = 0.
preliminary dsp for digital answering phone with flash interface KS16121 once in the voice prompt mode, the host can issue the v1 instruction to monitor the status of the playback phrase ( rd, em ) and the dtmf / call progress tone detection result ( dtmf, cpt ) without interrupting the playback. the KS16121 sets the status bit , rd ( ready ), when it reaches near the end of the phrase. a new v0 instruction with an appropriate phrase number may be issued to play another phrase. the host can play two phrases without any gap between them by issuing a v0 instruction immediately after rd is set. alternatively, the host may create a silence gap between phrases by delaying the instruction. note that the KS16121 returns a status word every 20 msec period. ( for instance, a 40 msec gap is created by a command sequence, v1 , v1 and v0, immediately after rd has been set ). the KS16121 sets the status bit em when it actually reaches the end of a phrase. the voice prompt mode terminates with an idle instruction from the host. tone generation a tone signal is generated and sent to the codec in this mode. the tone is selected from the tone table that contains 31 tone definitions. each tone may have two frequency components with gains respectively. refer to the programming mode for their definitions. the KS16121 enters the tone generation mode with a tone generate instruction that specifies the tone index ( tone id ) and master gain ( mgain ). the actual gains of individual frequency components are determined by mgain + gain0 and mgain + gain1. these sums specify the tone gains, ranging from 24dbm to 6 dbm in 2 db steps and hence must not exceed 15. here 0 dbm is equivalent to the power of a sinusiod with a peak to peak amplitude of 7175 before a linear to m -law conversion. in the tone generation mode, the host may switch to the different tone signal by sending a new tone generate commmand with the appropriate tone id and mgain. the dtmf and call progress tone detection result may be monitored, without interrupting the tone generation, by issuing a tone generate command with the same tone parameters. the tone generation mode terminates with an idle command. message deletion in this mode, the KS16121 removes the message specified in the message id field of the instruction and returns to the idle mode. the status bit , ef, indicates an invalid message index, if set. garbage collection in this mode, the KS16121 moves one message below the empty holes in the memorry space. a status word is returned after each move to inform the host whether the messages have been moved or not. when all the messages have been moved, the KS16121 issues a status word with gc bit set to 1. the time it takes to complete a garbage collection varies depending on the size of memory and the number of messages stored.
preliminary dsp for digital answering phone with flash interface KS16121 tone detection this mode monitors the incoming signal for the presence of dtmf, call progress tones, and cpe alerting signal. while in this mode, the KS16121 checks a new host instruction every 20 msec and returns a status word for response to a new command. the result of the detection is passed to the host, in the status fields, dtmf , cpt and ce parameter. read memory status when a read memory status instruction is issued by the host, the KS16121 sends the information of the number of messages stored, through the status word and returns to the idle mode. read data the KS16121 provides a storage of 128 16-bit words that may contain any information including telephone numbers. when the read data command is issued, the status word contains the data specified in the data id field of the instruction and the KS16121 returns to the idle mode. write data the d0 instruction specifies the index of data to be stored. the KS16121 then writes the 16-bit data in d1, stores it and returns to the idle mode. read attribute when the read attribute instruction is issued by the host, the KS16121 sends out the 16-bit attribute of the message specified by the message id and ma field of the instruction, and returns to the idle mode. note that each message has two attributes, identified by the ma filed. an invalid message index in the instruction causes the KS16121 to return to the idle mode with the status of 0x7000. set / change attribute an s0 instruction is entered by the host to set a message attribute with ma = 0 or 1. the host then writes the 16-bit attribute in the following s1 instruction. the KS16121 attaches this attribute to the next message to be stored. the host may change an attribute of an existing message with the change attribute instructions. the u0 instruction specifies the index of message and the type of attribute to be changed, followed by the 16-bit attribute data ( u1).
preliminary dsp for digital answering phone with flash interface KS16121 the KS16121 returns to the idle mode after the attribute is set or changed, and also when an invalid message index is detected ( status = 0x7000 ). read recording time in this mode, the KS16121 sends the available recording time and returns to the idle mode. the record time field of the status word represents the time in the unit of seconds. hw select the host may select the codecs for voice input for recording and voice output for playback with this command. the input codec is either codec 1 or 2. the output codec may be either one or both. the default codec is codec 1. program call progress detector the host may load new filter coefficients to be used for the call progress tone detection in this mode, initiated with the c0 instruction. the subsequent instructions, c1 to c15, set the 15 filter coefficients. the KS16121 returns to the idle mode after reading the fifteenth coeffcient. program tone generator in this mode, the host can change the definition of a tone in the KS16121 tone table. the t0 instruction specifies the tone index ( tone id ) and must be followed by t1, t2 and t3, in that sequence. the t1 instruction defines gains of the two frequency components ( gain0 and gain1 ) of the tone. the actual gain of each frequency is determined by the sum of gain0 or gain 1 with the master gain ( mgain ) given with the tone - generate instruction. the range of gains ranges from -24dbm ( sum = 0xf ) to 6dbm ( sum = 0x0 ) in 2db steps. setting either gain0 or gain1 to zero results in a single frequency tone. instructions t2 and t3 determine the tone frequencies with parameters, frequency 0 and frequency 1, respectively. the actual frequency selected is ( 8000 / 65536 ) * frequency 0 or 1. the t3 instruction completes this mode and the KS16121 returns to the idle mode.
preliminary dsp for digital answering phone with flash interface KS16121 speakerphone in this mode, the KS16121 performs a speakerphone algorithm with lec, aec and programmable parameters. this mode uses both codec 1 and codec 2 inputs and outputs. codec 1 is used for the line interface. codec 2 is used for the microphone input and speaker output. the host can make the KS16121 to perform the speakerphone algorithm by issuing the sp0 instruction. the sp0 instruction sets all programmable parameters including mic input sensitivity, line input sensitivity, speaker output volume, and line output volume. the sp1 instruction can modify speaker output volume and line output volume. the KS16121 monitors the incoming signal to detect the cpe alerting signal in this mode. by issuing the sp2 instruction, the host can acquire the detection result of the cpe alerting signal in the status field , ce , and may force the KS16121 to receive the caller - id information. the host can issue a command every 0.5 ms in this mode. the speakerphone mode terminates with an idle command. to get better knowledge for the applications of this mode, please refer to appendix b. read caller-id the KS16121 provides a storage of 40 48-byte caller-id information . to read pre-stored caller-id information , the host should issue cr0 command with the cnd id ranged from 0 to 0 x 27, and the KS16121 duplicates the cr0 command for its status word. after receiving the status words , the host issues cr1 command to read each byte of cnd information . if the host tries to read more than 48 bytes, the KS16121 returns status word with cs bit set to 1 and 0 cnd information. the read caller-id mode terminates with an idle command. write caller-id to write caller -id information , the host should issue cw0 command with the cnd id ranged from 0 to 0 x 27, and the KS16121 duplicates the wr0 command for its status word. after receiving the status, the host issues cw1 command with cnd information field. if the host tries to write more than 48 bytes, the KS16121 returns status word with cs bit set to 1. the write caller-id mode terminates with an idle command. detect caller-id the host can make the KS16121 to receive the caller-id information regardless of on-hook or off-hook transmission by issuing the detect caller-id instruction. then, after issuing the instruction, the host can acquire the current status of the receiver or the received ascii bytes by reading the status word. the received byte is meaningful only when the status bit rm is set. the checksum word is also passed to the host. so the host should recompute the checksum and compare to the received checksum word to verify whether the message frame has been correctly received. the detect caller-id instruction can be given when the hreqb is active low. the detect caller-id mode terminates with an idle command.


▲Up To Search▲   

 
Price & Availability of KS16121

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X